/**
 * Copyright (c) Huawei Technologies Co., Ltd. 1987-2021. All rights reserved.
*/

package com.gitee.fufu669.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.StringUtils;

/**
 * @author wangfupeng
 */
public class CacheStringUtils {

    /**
     * TODO
    */
    public static final Logger logger = LoggerFactory.getLogger(CacheStringUtils.class);

    /**
     * TODO
    */
    public static Boolean isEmpty(Object originalString) {
        // 返回
        return StringUtils.isEmpty(originalString);
    }

    /**
     * TODO
    */
    public static Boolean isNotEmpty(Object originalString) {
        // 返回
        return !StringUtils.isEmpty(originalString);
    }

    /**
     * TODO
    */
    public static Boolean equals(Object originalObject, Object compareObject) {
        // 判断是否是空
        if(originalObject==null){
            // 判断是否是空
            if(compareObject==null){
                // 返回
                return true;
            // 否则
            }else{
                // 返回
                return false;
            }
        }
        // 返回
        return originalObject.equals(compareObject);
    }

}
